﻿///<reference path="../jquery/jquery.js"/>
var IEFixer = function() {
	///<summary>Fix some issues of IE Browser</summary>

	var uglyElements = null;
	return {
		DialogFix: function(dialogselector, flag) {
			///<summary>Hide ugly "select" and "iframe" for a dialog box</summary>
			///<param name="dialogselector">dialog obj's selector</param>
			///<param name="flag">1,do fix;0,revert fix</param>
			if (!$.browser.msie) return;
			if (flag == 1) {
				uglyElements = $("select,iframe").not(dialogselector).not(dialogselector + " select,iframe").hide();
			} else {
				uglyElements.show();
			}
		} // / DialogFix
	};
} ();